// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * SalesFlatOrderAddress generated by hbm2java
 */
@Entity
@Table(name = "sales_flat_order_address", catalog = "magento")
public class SalesFlatOrderAddress implements java.io.Serializable {

	private Integer entityId;
	private SalesFlatOrder salesFlatOrder;
	private Integer customerAddressId;
	private Integer quoteAddressId;
	private Integer regionId;
	private Integer customerId;
	private String fax;
	private String region;
	private String postcode;
	private String lastname;
	private String street;
	private String city;
	private String email;
	private String telephone;
	private String countryId;
	private String firstname;
	private String addressType;
	private String prefix;
	private String middlename;
	private String suffix;
	private String company;
	private Integer addressId;
	private Integer giftMessageId;
	private String taxId;

	public SalesFlatOrderAddress() {
	}

	public SalesFlatOrderAddress(SalesFlatOrder salesFlatOrder,
			Integer customerAddressId, Integer quoteAddressId,
			Integer regionId, Integer customerId, String fax, String region,
			String postcode, String lastname, String street, String city,
			String email, String telephone, String countryId, String firstname,
			String addressType, String prefix, String middlename,
			String suffix, String company, Integer addressId,
			Integer giftMessageId, String taxId) {
		this.salesFlatOrder = salesFlatOrder;
		this.customerAddressId = customerAddressId;
		this.quoteAddressId = quoteAddressId;
		this.regionId = regionId;
		this.customerId = customerId;
		this.fax = fax;
		this.region = region;
		this.postcode = postcode;
		this.lastname = lastname;
		this.street = street;
		this.city = city;
		this.email = email;
		this.telephone = telephone;
		this.countryId = countryId;
		this.firstname = firstname;
		this.addressType = addressType;
		this.prefix = prefix;
		this.middlename = middlename;
		this.suffix = suffix;
		this.company = company;
		this.addressId = addressId;
		this.giftMessageId = giftMessageId;
		this.taxId = taxId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "entity_id", unique = true, nullable = false)
	public Integer getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "parent_id")
	public SalesFlatOrder getSalesFlatOrder() {
		return this.salesFlatOrder;
	}

	public void setSalesFlatOrder(SalesFlatOrder salesFlatOrder) {
		this.salesFlatOrder = salesFlatOrder;
	}

	@Column(name = "customer_address_id")
	public Integer getCustomerAddressId() {
		return this.customerAddressId;
	}

	public void setCustomerAddressId(Integer customerAddressId) {
		this.customerAddressId = customerAddressId;
	}

	@Column(name = "quote_address_id")
	public Integer getQuoteAddressId() {
		return this.quoteAddressId;
	}

	public void setQuoteAddressId(Integer quoteAddressId) {
		this.quoteAddressId = quoteAddressId;
	}

	@Column(name = "region_id")
	public Integer getRegionId() {
		return this.regionId;
	}

	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}

	@Column(name = "customer_id")
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "fax")
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "region")
	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	@Column(name = "postcode")
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "lastname")
	public String getLastname() {
		return this.lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	@Column(name = "street")
	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	@Column(name = "city")
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "email")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "telephone")
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "country_id", length = 2)
	public String getCountryId() {
		return this.countryId;
	}

	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}

	@Column(name = "firstname")
	public String getFirstname() {
		return this.firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	@Column(name = "address_type")
	public String getAddressType() {
		return this.addressType;
	}

	public void setAddressType(String addressType) {
		this.addressType = addressType;
	}

	@Column(name = "prefix")
	public String getPrefix() {
		return this.prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	@Column(name = "middlename")
	public String getMiddlename() {
		return this.middlename;
	}

	public void setMiddlename(String middlename) {
		this.middlename = middlename;
	}

	@Column(name = "suffix")
	public String getSuffix() {
		return this.suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	@Column(name = "company")
	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "address_id")
	public Integer getAddressId() {
		return this.addressId;
	}

	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}

	@Column(name = "gift_message_id")
	public Integer getGiftMessageId() {
		return this.giftMessageId;
	}

	public void setGiftMessageId(Integer giftMessageId) {
		this.giftMessageId = giftMessageId;
	}

	@Column(name = "tax_id")
	public String getTaxId() {
		return this.taxId;
	}

	public void setTaxId(String taxId) {
		this.taxId = taxId;
	}

}
